package spring.cloud.canary.demo.remote;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.GetMapping;

/**
 * @author cuichao
 */
@Service
@FeignClient(contextId = "providerPingService" , value = "provider", path = "/provider")
public interface ProviderRemoteService {

    /**
     * 测试接口
     * @return
     */
    @GetMapping("ping")
    String ping();
}
